
export interface ActionType {
	type: string
	payload: any
}

const initSate = {
	user: ''
}

const reducer = (state = initSate, action: ActionType) => {
	switch (action.type) {
		case 'SET_USER': 
			return {
				...state,
				user: action.payload
			}
		default:
			return state
	}
}


export default reducer